package top.tomxwd.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author xieweidu
 * @createDate 2020-08-02 9:31
 */
@FeignClient(value = "PAYMENT-HYSTRIX-8001", fallback = PaymentFeignFallbackService.class)
public interface PaymentFeignService {

    @RequestMapping("/ok/{id}")
    String paymentInfoOk(@PathVariable("id") Integer id);

    @RequestMapping("/timeout/{id}")
    String paymentInfoTimeout(@PathVariable("id") Integer id);

}
